#include <dolphin/socket.h>
int SOListen ( int s, int backlog );
SOListen() enables the connection-mode socket to accept connections.
s |
The socket descriptor. |
backlog |
The maximum number of pending connections in the socket's listen backlog
queue. If backlog is less than or equal
to zero, backlog is set to one. |
| zero | Succeeded. |
SO_EBADF |
Bad socket descriptor. |
SO_EINVAL |
Invalid operation. |
SO_ENETRESET |
Socket library is not initialized. |
SO_ENOBUFS |
Insufficient resources. |
SO_EOPNOTSUPP |
Non-supported operation. |
Note: Additional errors may be generated and returned in future library releases. All the negative return values must be treated as generic errors.